<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="/WEB-INF/jsp/common/common.jsp" />
<script type="text/javascript">
	function query() {
		$("#form1").submit();
	}

	function myDel(worklog_id) {
		if (confirm("确认要删除吗？")) {
			$("input[name='worklog_id']").val(worklog_id);
			var url = "${path}/ix/worklog/del.htm";
			$("#form1").attr("action", url);
			$("#form1").submit();
		}
	}
</script>
</head>
<body>
	<jsp:include page="/WEB-INF/jsp_lib/tip.jsp" />
	<div>
		<form action="${path}/ix/worklog/list.htm" id="form1" method="post">
			<input type="hidden" name="worklog_id" />
			<h2>
				<div>日志列表</div>
			</h2>
			<div class="query">
				<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="5">
					<tr>
						<td width="60" align="right"><strong>内容：</strong></td>
						<td width="200" align="left"><input name="srh_content"
							type="text" /></td>
						<td align="left"><a href="javascript:query();"> <img
								src="${path}/style_cp/img/query.jpg" name="Image4" width="85"
								height="27" border="0" id="Image4" />
						</a></td>
					</tr>
				</table>
			</div>
			<table width="100%" class="listlindex">
				<tr>
					<th>日期</th>
					<th>工作内容</th>
					<th>审核状态</th>
					<th>操作</th>
				</tr>
				<c:if test="${fn:length(loglist)==0}">
					<tr>
						<td colspan="4"><div class="tip_div">暂无记录.</div></td>
					</tr>
				</c:if>
				<c:forEach items="${loglist}" var="v">
					<tr>
						<td>${v.date}</td>
						<td>${v.content}</td>
						<td>${v.exam_status}</td>
						<td><a href="javascript:myDel('${v._id}');">【删除】</a></td>
					</tr>
				</c:forEach>
			</table>
			<div class="options">
				<div class="quotes">
					<page:page page="${page}" />
				</div>
				<div class="clear"></div>
			</div>

			<div class="options">
				<a href="${path}/ix/worklog/edit_form.htm"> 【返回】 </a>
			</div>
		</form>
	</div>
</body>
</html>